var pathRead = require('hy5b/backend/path-read');
var _ = require('lodash');

const keys = ['introduction','grammar','stdlib','oop','advanced','dom','bom','htmlapi','jquery','library','nodejs','tool','webapp','appendix']
const obj = {
  introduction: '导论',
  grammar: '语法',
  stdlib: '标准库',
  oop: '面向对象编程',
  advanced: '语法专题',
  dom: 'DOM模型',
  bom: '浏览器环境',
  htmlapi: 'Web API',
  jquery: 'jQuery',
  library: '草稿一：函数库',
  nodejs: '草稿二：Node.js',
  tool: '开发工具',
  webapp: 'Web App',
  appendix: '附录'
}

let data = {}
_.each(keys, (folder) => {
  data[folder] = {}
  pathRead(folder, function(err, str, fileName) {
    if (!err) {
      
    }
  })
})